| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function BeginInvoke( _ ByVal command As String, _ ByVal data() As Byte, _ ByVal state As Object _ ) As IAsyncResult | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Imap Dim command As String Dim data() As Byte Dim state As Object Dim value As IAsyncResult value = instance.BeginInvoke(command, data, state) | |
| Managed Extensions for C++ | |
|---|---|
public: IAsyncResult* BeginInvoke( string* command, byte[]* data, Object* state ) | |
| C++/CLI | |
|---|---|
public: IAsyncResult^ BeginInvoke( String^ command, array<byte>^ data, Object^ state ) | |
Parameters
- command
- The command to issue to the server.
- data
- The data to send after the server responds to the command.
- state
- User state information.
Return Value
An IAsyncResult that represents the asynchronous operation, which could still be pending.| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.ProtocolException | Bad IMAP protocol response received from server. |
| System.Net.Sockets.SocketException | The requested address is not valid in its context. |
| System.InvalidOperationException | BeginXXX method used without providing an EndXXX event handler. |
The Imap.BeginInvoke method begins to asynchronously send out the specified command. The contents of data are sent as a literal following any continuation responses from the IMAP server. Upon completion, the Imap.EndInvoke event is raised. This follows the APPEND command model, where the APPEND command is issued, the server issues a continuation response, and the actual message data is then sent
The Imap.BeginInvoke method is useful for enabling communication with servers that recognize proprietary commands not included in the Imap component model.
Target Platforms: Microsoft .NET Framework 2.0